package com.sy.musicapp.intent.service

import com.sy.musicapp.model.BaseResponse
import com.sy.musicapp.model.Music
import com.sy.musicapp.model.Playlist
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface PlaylistService {

    @GET("user/playlist")
    fun getPlaylist(@Query("uid") uid: String): Call<List<Playlist>>

    @GET("playlist/create")
    fun addPlaylist(@Query("name") name: String): Call<Playlist>

    @POST("playlist/delete")
    fun delPlaylist(@Query("id") id: String): Call<BaseResponse>

    @GET("playlist/detail")
    fun getPlaylistMusic(@Query("id") id: String): Call<List<Music>>

//    fun addMusicToPlaylist()
//    fun delMusicFromPlaylist()
}